home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / sweettim.swf / scripts / frame_9 / DoAction.as
Encoding:
Text File  |  2011-06-09  |  330 b   |  17 lines

  1. stopAllSounds();
  2. if(currentScore > 0)
  3. {
  4.    tempPound = Math.floor(currentScore / 100);
  5.    tempPenny = _root.currentScore - tempPound * 100;
  6.    if(tempPenny < 10)
  7.    {
  8.       tempPenny = "0" + tempPenny;
  9.    }
  10. }
  11. else
  12. {
  13.    tempPound = "00";
  14.    tempPenny = "00";
  15. }
  16. finalScore.text = "┬ú" + tempPound + "." + tempPenny;
  17.